package com.linght.SpringBoot;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * User:岁亮亮
 * Date:2024-11-07
 * TIME:10:19
 */

@RequestMapping("/calc")
@RestController
public class CalcController {
    @RequestMapping("/sum")
    public String calc(Integer num1, Integer num2) {
        Integer sum = num2 + num1;
        return "num1 + num2 的值是 "+sum.toString();
    }

}
